﻿<%@ Page Language="C#" MasterPageFile="~/HouseKeep/ManageMaster.master" AutoEventWireup="true" CodeFile="ManageAdmissibility.aspx.cs" Inherits="HouseKeep_ManageAdmissibility" Title="辖区房管所管理页面" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<script type="text/vbscript"  language="vbscript">   
sub ynOpen()
     if MsgBox("忽略受理单直接填写申请表？",4,"选择")=6 then 
        window.open("../StreetCenter/AddAdmissibility.aspx?isquickadd=1")
     else
        window.open("../StreetCenter/AddAdmissibility.aspx?isquickadd=0")
     end if 
end sub 
    
</script>

<script type="text/javascript" src="../src/jquery.js"></script>
<script type="text/javascript" src="../src/bgiframe.js"></script>
<script type="text/javascript" src="../src/weebox.js"></script>

<script language=javascript type="text/javascript">

$(document).ready(function(){


  $(".changeClass").click
  (

        function()
        {
          var applyid=$(this).attr("name");
	      $.weeboxs.open('#boxcontent', {
	                      title:'选择调整年月：',
	                      onok:function()
	                            {
	                                var m=$('#EffectDateMonth').val();
	                                var y=$('#EffectDateYear').val();
	                           
                                window.open("LoadChangeApply.aspx?applyid="+applyid+"&thetype=change&effectdate="+y+m);
			                    //box.close();//增加事件方法后需手动关闭弹窗
	                        	}
	                      });
	
        }
  );




}); 



</script>
<div style="display:none" id="boxcontent">
    调整年月：&nbsp;<select name="EffectDateYear" id="EffectDateYear">
	<option value="2009">2009</option>
	<option value="2010">2010</option>
	<option value="2011">2011</option>

</select>年
    <select name="EffectDateMonth" id="EffectDateMonth">  
        <option value="02">2</option>
	    <option value="03">3</option>
	    <option value="04">4</option>
	    <option value="05">5</option>
	    <option value="06">6</option>
	    <option value="07">7</option>
	    <option value="08">8</option>
	    <option value="09">9</option>
	    <option value="10">10</option>
	    <option value="11">11</option>
	    <option value="12">12</option>
</select>月</div>
    <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
            <td align="right" style="height: 41px">
                <table width="30%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                        <td align="center" style="height: 20px"><a onclick="vbscript:ynOpen()" target="_blank"><img src="../Images/addadm.jpg" width="100" height="20"/></a></td>
                        <td align="center" style="height: 20px"><a href="ViewDaoQi.aspx"><img src="../Images/Maindaoqi.gif" width="100" height="20"/></a></td>
                        <td align="center" style="height: 20px"><a href="../CrystalReport/VerificationList.aspx" target="_blank"><img src="../Images/Main5_13.jpg" width="100" height="20"/></a></td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
            <td align="center" style="width: 80px; height: 33px">
            </td>
            <td width="3%" align="center" style="height: 33px"><img src="../Images/Main_14.jpg" width="5" height="9"></td>
            <td class="lanse" style="width: 82%; height: 33px;">
                房管所审核</td>
            <td class="lanse" width="97%" style="height: 33px">
                <asp:LinkButton ID="LinkButton1" runat="server" PostBackUrl="~/HouseKeep/ManageApplyAll.aspx">查看分月记录</asp:LinkButton></td>
            <td class="lanse" width="97%" style="height: 33px">
            </td>
        </tr>
        <tr>
          <td colspan="5" align="center"  ><table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
              <td width="80" colspan="1" align="center" class="lanse" style="width: 80px; height: 14px"></td>
              <td align="center" class="lanse" colspan="3" style="height: 14px"> 本页共有
                <asp:Label ID="lblPageInfo" runat="server"></asp:Label>
                条 &nbsp;</td>
              <td class="lanse" width="207" style="height: 14px"><span class="lanse" style="height: 14px">显示年月
                <select name="EffectDateYear2" id="Select1" runat="server">
                  <option value="2009">2009</option>
                  <option value="2010">2010</option>
                  <option value="2011">2011</option>
                </select>
                  &nbsp;
                  <asp:DropDownList ID="ddlMonth" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlMonth_SelectedIndexChanged">
                  </asp:DropDownList></span></td>
              <td class="lanse" width="207" style="height: 14px">
                  <!-- OnClick="Button1_Click" Text="生成该月清册" -->&nbsp;暂停生成</td>
            </tr>
          </table></td>
        </tr>
    </table>
    <table width="95%" border="0" align="center" cellpadding="0" cellspacing="1">
<tr>
            <td>
                待审核：<asp:GridView ID="gvstreetshow" runat="server" AutoGenerateColumns="False" CssClass="GridViewStyle" Width="100%" OnRowCommand="gvstreetshow_RowCommand" OnRowDataBound="gvstreetshow_RowDataBound" EmptyDataText="暂时没有待核查信息" >
                    <Columns>
                        <asp:TemplateField HeaderText="受理编号">
                            <ItemTemplate>
                              <%#Eval("adm_noid")%>  长编号：<%#Eval("applongid")%>
                            </ItemTemplate>
                            <ItemStyle Width="30%" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="详情">
                            <ItemTemplate>
                                申请人：<%#Eval("applyname")%>
                            </ItemTemplate>
                            <ItemStyle Width="20%" />
                        </asp:TemplateField>
                         <asp:TemplateField HeaderText="年月">
                            <ItemTemplate>
                             <%#Eval("EffectDate")%></ItemTemplate>
                            <ItemStyle Width="10%" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="操作">
                            <ItemTemplate>
                                <asp:HyperLink ID="hlkview" runat="server" Target="_blank" NavigateUrl='<%# "../StreetCenter/ViewAdmissibility.aspx?id="+Eval("adm_id") %>' Font-Size="14px">受理单</asp:HyperLink>
                                <asp:HyperLink ID="hlkadd" runat="server" Target="_blank"  NavigateUrl='<%#Convert.ToInt32(Eval("adm_applyed").ToString())==0? "../StreetCenter/AddApply.aspx?id="+Eval("adm_noid"):"../StreetCenter/AddApply.aspx?applyid="+Eval("id")+"&thetype=view"%>' Font-Size="14px"><%#Convert.ToInt32(Eval("adm_applyed").ToString())==0?"填写申请表":"查看申请表"%></asp:HyperLink>
<%--                                <asp:LinkButton ID="lkbsubmit" runat="server" Enabled='<%# AllowView(Convert.ToInt32(Eval("adm_noid")),Eval("id")) %>' CommandName="commit" CommandArgument='<%#Eval("id") %>' Font-Size="14px">提交</asp:LinkButton>
			                    <asp:LinkButton ID="lkbQuicksubmit" runat="server"   Enabled='<%# AllowView(Convert.ToInt32(Eval("adm_noid")),Eval("id")) %>'   CommandName="quickcommit" CommandArgument='<%#Eval("adm_noid") %>' Font-Size="14px">快速提交</asp:LinkButton>--%>
                                <%--<asp:LinkButton ID="lkbtndel" runat="server"  CommandName="del" CommandArgument='<%#Eval("adm_id") %>' Font-Size="14px">删除</asp:LinkButton>--%>
                                <!--a href='<%# "../StreetCenter/AddApply.aspx?applyid="+Eval("id") %>&thetype=edit' target="_blank"  Font-Size="14px">校对</a-->
                                <a   class='changeClass' name="<%#Eval("id") %>"  Font-Size="14px" title="请在新月份的数据里直接校正">调整</a>
                              
                            </ItemTemplate>
                            <ItemStyle Width="40%" />
                        </asp:TemplateField>
                    </Columns>
                    <FooterStyle CssClass="FooterStyle" />
                    <RowStyle CssClass="RowStyle" />
                    <EmptyDataRowStyle CssClass="EmptyRowStyle" />
                    <PagerStyle CssClass="PagerStyle" />
                    <SelectedRowStyle CssClass="SelectedRowStyle" />
                    <HeaderStyle CssClass="HeaderStyle" />
                    <EditRowStyle CssClass="EditRowStyle" />
                    <AlternatingRowStyle CssClass="AltRowStyle" />
                </asp:GridView>
                <asp:GridView ID="gvadmissibilityshow" runat="server" AutoGenerateColumns="False"
                    CssClass="GridViewStyle" OnRowCommand="gvadmissibilityshow_RowCommand"
                    OnRowDataBound="gvadmissibilityshow_RowDataBound" Width="100%">
                    <Columns>
                        <asp:TemplateField HeaderText="受理编号">
                            <ItemTemplate>
                               <a href="<%# "../PublicContent/ViewApply.aspx?id="+Eval("adm_noid")+"&applyid="+Eval("adm_id") %>" target=_blank > <%#Eval("adm_noid")%></a>
                            </ItemTemplate>
                            <ItemStyle Width="20%" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="详情">
                            <ItemTemplate>
                                申请人：<%#Eval("adm_applyname")%>
                                &nbsp; &nbsp; 申请时间：<%#Convert.ToDateTime(Eval("adm_date")).ToString("yyyy年MM月dd日")%>
                            </ItemTemplate>
                            <ItemStyle Width="40%" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="房产审核">
                            <ItemTemplate>
                                <asp:LinkButton ID="lkbtnpass" runat="server" CommandArgument='<%#Eval("adm_noid") %>'
                                    CommandName="pass" Font-Size="14px">通过</asp:LinkButton>
                                <asp:LinkButton ID="lkbtnunpass" runat="server" CommandArgument='<%#Eval("adm_noid") %>'
                                    CommandName="unpass" Font-Size="14px">否决</asp:LinkButton>
                            </ItemTemplate>
                            <ItemStyle Width="40%" />
                        </asp:TemplateField>
                    </Columns>
                    <FooterStyle CssClass="FooterStyle" />
                    <RowStyle CssClass="RowStyle" />
                    <EmptyDataRowStyle CssClass="EmptyRowStyle" Font-Size="15px" ForeColor="Red" />
                    <PagerStyle CssClass="PagerStyle" />
                    <SelectedRowStyle CssClass="SelectedRowStyle" />
                    <HeaderStyle CssClass="HeaderStyle" />
                    <EditRowStyle CssClass="EditRowStyle" />
                    <AlternatingRowStyle CssClass="AltRowStyle" />
                </asp:GridView>
            </td>
        </tr>
    </table>
</asp:Content>

